package com.dcits.selenium;


/**
 * 测试步骤
 * @author xuwangcheng
 * @version 2018.3.22
 *
 */
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class TestStep {
	
	private static Integer idCount = 1;
	
	private Integer stepId;
	
	/**
	 * 步骤名称
	 */
	private String stepName;
	/**
	 * 步骤状态<br>
	 * false-失败，true-成功
	 */
	private Boolean status;
	/**
	 * 步骤备注,可记录验证情况、失败原因等信息
	 */
	private String mark;
	/**
	 * 步骤截图<br>每个步骤只能有一个截图,在一个步骤中多次截图只会保存最后一张
	 */
	private String screenshot;
	/**
	 * 步骤执行时间
	 */
	private Date testTime;
	
	public TestStep() {
		// TODO Auto-generated constructor stub
		this.stepId = idCount++;
	}
	
	public String getStepName() {
		return stepName;
	}
	public void setStepName(String stepName) {
		this.stepName = stepName;
	}
	
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
	public String getScreenshot() {
		return screenshot;
	}
	public void setScreenshot(String screenshot) {
		this.screenshot = screenshot;
	}
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	public Date getTestTime() {
		return testTime;
	}
	public void setTestTime(Date testTime) {
		this.testTime = testTime;
	}
	
	public void setStepId(Integer stepId) {
		this.stepId = stepId;
	}
	
	public Integer getStepId() {
		return stepId;
	}
}
